package com.molan.molan_music.mapper;

import com.molan.molan_music.dto.MusicCreateRequest;
import com.molan.molan_music.dto.MusicDto;
import com.molan.molan_music.dto.MusicUpdateRequest;
import com.molan.molan_music.dto.UserCreateRequest;
import com.molan.molan_music.entity.Music;
import com.molan.molan_music.entity.User;
import com.molan.molan_music.vo.MusicVo;
import com.molan.molan_music.vo.UserVo;
import org.mapstruct.Mapper;
import org.springframework.stereotype.Component;

@Mapper(componentModel = "spring")
@Component
public interface MusicMapper {
    MusicDto toDto(Music music);

    MusicVo toVo(MusicDto musicDto);

    Music createEntity(MusicCreateRequest musicCreateRequest);

    Music updateEntity(MusicUpdateRequest musicUpdateRequest);
}
